using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using NBear.Data;

/// <summary>
/// Init Database access gateways here
/// </summary>
public abstract class Gateways
{
	private Gateways()
	{
	}

    //description:

    //connection strings for Northwind and TestAccessDb are set in Web.config file.
    //NBear will automatically create a default gateway for the last connection string setting(in this case, it is the Northwind database), 
    //you can visit the default gateway by NBear.Data.Gateway.Default property.
    //you can call NBear.Data.Gateway.SetDefaultDatabase() to set any other database connection as default gateway.

    //you can create new gateway by providing the connection string setting name(like in this case) or the database type and connection string
    //or the assembly name and classname which implemented NBear.Data.DbProvider, 
    //which is a abstract class defining all the basic db provider functions.

    public static Gateway Northwind = new Gateway("Northwind");
    public static Gateway TestAccessDb = new Gateway("TestAccessDb");
}
